<div class="photo">
     <% rel = logged_in? ? "nil" : "lightbox" %>
       <% url = logged_in? ? "#" : image_path(photo.to_url(:large)) %>
        <% image = image_tag(photo.to_url(:thumbnail), :id=>"photo_#{photo.id}", :title=>photo.title) %>
        <%= link_to image, url, :rel=>rel %>
     <%= draggable_element "photo_#{photo.id}", :revert => true if logged_in? %>
<br/>
     <%= h(photo.description) %>
<br/>
       <%photo.get_tags.each do |t|%>
     [<%=t.title%>]
     <%end%>
</div>